<?php 
/* SVN FILE: $Id$ */
/* OrderAction Test cases generated on: 2009-05-31 01:05:31 : 1243746331*/
App::import('Model', 'OrderAction');

class OrderActionTestCase extends CakeTestCase {
	var $OrderAction = null;
	var $fixtures = array('app.order_action', 'app.order_info');

	function startTest() {
		$this->OrderAction =& ClassRegistry::init('OrderAction');
	}

	function testOrderActionInstance() {
		$this->assertTrue(is_a($this->OrderAction, 'OrderAction'));
	}

	function testOrderActionFind() {
		$this->OrderAction->recursive = -1;
		$results = $this->OrderAction->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('OrderAction' => array(
			'id'  => 1,
			'action_user'  => 'Lorem ipsum dolor sit amet',
			'order_status'  => 1,
			'shipping_status'  => 1,
			'pay_status'  => 1,
			'action_note'  => 'Lorem ipsum dolor sit amet',
			'log_time'  => '2009-05-31 01:05:31',
			'order_info_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>